<%@ page import="ghr.day0109.lottery.dao.UserDao" %>
<%@ page import="ghr.day0109.lottery.dao.impl.UserDaoimpl" %><%--
  Created by IntelliJ IDEA.
  User: Gong
  Date: 2023/1/9
  Time: 15:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    UserDao userDao = new UserDaoimpl();
String name = request.getParameter("name");
int deleteRes = userDao.deleteUser(name);
if (deleteRes>0){
    request.getRequestDispatcher("index.jsp").forward(request,response);
}else {
    out.print("失败");
}
%>
<h1><%=name%></h1>
</body>
</html>
